package com.wrx.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName()
@ApiModel(value="ThemePostModel对象", description="")
public class ThemePostModel {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主题帖id")
    @TableId(value = "theme_post_id", type = IdType.AUTO)
    private Integer theme_post_id;

    @ApiModelProperty(value = "归属贴吧id")
    private Integer bar_id;

    @ApiModelProperty(value = "发帖人id")
    private Integer user_id;

    @ApiModelProperty(value = "用户网名")
    private String netname;
    @ApiModelProperty(value = "用户logo")
    private String image;
//theme_post_id,bar_id,user_id,netname,theme_post_title,theme_post_info,put_post_time,last_reply_time,post_property,post_number
    @ApiModelProperty(value = "主题帖标题")
    private String theme_post_title;

    @ApiModelProperty(value = "主题帖内容")
    private String theme_post_info;

    @ApiModelProperty(value = "发帖时间")
    private LocalDateTime put_post_time;

    @ApiModelProperty(value = "最后回复时间")
    private LocalDateTime last_reply_time;

    @ApiModelProperty(value = "帖子性质(默认为1,1为普通帖，2为精品贴，3为封禁)")
    private String post_property;

    @ApiModelProperty(value = "帖子回复总数")
    private Integer post_number;

    @ApiModelProperty(value = "是否被删除")
    private Integer theme_post_state;



    ThemePostModel(){};

    public ThemePostModel(Integer theme_post_id, Integer bar_id, Integer user_id, String netname, String theme_post_title, String theme_post_info, LocalDateTime put_post_time, LocalDateTime last_reply_time, String post_property, Integer post_number, Integer theme_post_state) {
        this.theme_post_id = theme_post_id;
        this.bar_id = bar_id;
        this.user_id = user_id;
        this.netname = netname;
        this.theme_post_title = theme_post_title;
        this.theme_post_info = theme_post_info;
        this.put_post_time = put_post_time;
        this.last_reply_time = last_reply_time;
        this.post_property = post_property;
        this.post_number = post_number;
        this.theme_post_state = theme_post_state;
    }

    public ThemePostModel(Integer theme_post_id, Integer bar_id, Integer user_id, String netname, String theme_post_title, String theme_post_info, LocalDateTime put_post_time, LocalDateTime last_reply_time, String post_property, Integer post_number, Integer theme_post_state, boolean theme_post_collect_state) {
        this.theme_post_id = theme_post_id;
        this.bar_id = bar_id;
        this.user_id = user_id;
        this.netname = netname;
        this.theme_post_title = theme_post_title;
        this.theme_post_info = theme_post_info;
        this.put_post_time = put_post_time;
        this.last_reply_time = last_reply_time;
        this.post_property = post_property;
        this.post_number = post_number;
        this.theme_post_state = theme_post_state;

    }

    public ThemePostModel(Integer theme_post_id, Integer bar_id, Integer user_id, String netname, String image, String theme_post_title, String theme_post_info, LocalDateTime put_post_time, LocalDateTime last_reply_time, String post_property, Integer post_number, Integer theme_post_state) {
        this.theme_post_id = theme_post_id;
        this.bar_id = bar_id;
        this.user_id = user_id;
        this.netname = netname;
        this.image = image;
        this.theme_post_title = theme_post_title;
        this.theme_post_info = theme_post_info;
        this.put_post_time = put_post_time;
        this.last_reply_time = last_reply_time;
        this.post_property = post_property;
        this.post_number = post_number;
        this.theme_post_state = theme_post_state;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getTheme_post_state() {
        return theme_post_state;
    }

    public void setTheme_post_state(Integer theme_post_state) {
        this.theme_post_state = theme_post_state;
    }

    public Integer getTheme_post_id() {
        return theme_post_id;
    }

    public void setTheme_post_id(Integer theme_post_id) {
        this.theme_post_id = theme_post_id;
    }

    public Integer getBar_id() {
        return bar_id;
    }

    public void setBar_id(Integer bar_id) {
        this.bar_id = bar_id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getNetname() {
        return netname;
    }

    public void setNetname(String netname) {
        this.netname = netname;
    }

    public String getTheme_post_title() {
        return theme_post_title;
    }

    public void setTheme_post_title(String theme_post_title) {
        this.theme_post_title = theme_post_title;
    }

    public String getTheme_post_info() {
        return theme_post_info;
    }

    public void setTheme_post_info(String theme_post_info) {
        this.theme_post_info = theme_post_info;
    }

    public LocalDateTime getPut_post_time() {
        return put_post_time;
    }

    public void setPut_post_time(LocalDateTime put_post_time) {
        this.put_post_time = put_post_time;
    }

    public LocalDateTime getLast_reply_time() {
        return last_reply_time;
    }

    public void setLast_reply_time(LocalDateTime last_reply_time) {
        this.last_reply_time = last_reply_time;
    }

    public String getPost_property() {
        return post_property;
    }

    public void setPost_property(String post_property) {
        this.post_property = post_property;
    }

    public Integer getPost_number() {
        return post_number;
    }

    public void setPost_number(Integer post_number) {
        this.post_number = post_number;
    }
}
